<?php
/**
 * Created by PhpStorm.
 * User: DaibiDaddy
 * Date: 2016/5/24
 * Time: 17:14
 */

namespace App\Base;


class Format
{
    public function isPhone($str)
    {
        if(preg_match("/^1[3456789]{1}\d{9}$/",$str)){
            return true;
        }else{
            return false;
        }
    }
}
